package com.xneure.enging.widget;

import java.util.List;
import java.util.Map;

import com.xneure.enging.Context;
import com.xneure.enging.ui.UiElement;
import com.xneure.enging.widget.event.Event;
import com.xneure.enging.widget.event.EventType;
import com.xneure.utils.bean.GUID;

public interface Control {

	Control getParent();

	GUID getId();

	UiElement getHtmlEle();

	Context getContext();

	Map<GUID, Control> getElemMap();

	List<Control> getElems();

	Map<Event, EventType> getEventMap();

	void addElement(Control widget);

	void event(Object src, EventType type);

	void remove();

	void remove(Control widget);

}